home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh -f
- #
- # $Id: ciAll,v 1.1 93/11/02 13:12:06 carlson Exp $
- #
- # This script checks in all the files in the current directory.
- #
- # Parameters:
- # $* Any special options in ci command.
- #
- # Revision History:
- # $Log: ciAll,v $
- # Revision 1.1 93/11/02 13:12:06 carlson
- # Initial revision
- #
- #--------------------------------------------------------------------
-
- if ( $#argv < 1 ) then
- echo "Usage: $argv[0] [options ...]"
- echo " where: [options] are any additional options to be"
- echo " provided with the 'ci' command."
- exit 0
- endif
-
- #----
- # Collect the options
- #
-
- if ( $#argv >= 1 ) then
- set options = ( $* )
- else
- set options = ""
- endif
-
- #----
- # Scan through files in this directory, skipping directories.
- #
-
- foreach file ( * )
- if ( -d $file ) continue
- if ( -r RCS/$file,v ) then
-
- rcs -l $file
- echo "Checking in $file"
- /usr/sbin/ci $options $file
- else
- echo "$file has never been checked in."
- echo "Do you want to check this in? \c"
- set rev = $<
- if ( "$rev" == "y" ) then
- head -30 $file
- echo "-----"
- /usr/sbin/ci $options $file
- endif
- endif
- echo "-----------------------------------------------------------"
- end
-